using System;


/// <summary>
/// Summary description for Account
/// </summary>
/// 
namespace CE.User
{
    public class LoginHistory
    {
        public LoginHistory()
        {
            ClearFields();
        }

        private Int64 loginhisid;
        private Int64 ceid;
        private int usrtypeid;
        private DateTime starttime;
        private DateTime endtime;
        private bool isexpired;
        private string status;

        public Int64 LoginHisId
        {
            get { return loginhisid; }
            set { loginhisid = value; }
        }

        public Int64 CEID
        {
            get { return ceid; }
            set { ceid = value; }
        }

        public int UserTypeId
        {
            get { return usrtypeid; }
            set { usrtypeid = value; }
        }

        public DateTime StartTime
        {
            get { return starttime; }
            set { starttime = value; }
        }

        public DateTime EndTime
        {
            get { return endtime; }
            set { endtime = value; }
        }

        public bool IsExpired
        {
            get { return isexpired; }
            set { isexpired = value; }
        }

        public string Status
        {
            get { return status; }
            set { status = value; }
        }

        private void ClearFields()
        {
            ceid = 0;
            loginhisid = 0;
            usrtypeid = 0;
            starttime = CE.Global.General.GetUTCDateTime(); //DateTime.Now;
            endtime = CE.Global.General.GetUTCDateTime(); //DateTime.Now;
            status = "";
            isexpired = false;

        }
    }
}
